<script>
export default {
  name: "ptTabs",
  data () {
    return {
      test: "test",
      isred: true,
      color: "red"
    };
  },
  render (h) {
    return (
      <div
        style={{
          color: this.color
        }}
        onClick={this.fn_click}
      >
        {[1, 2, 3].map(() => this.test)}
      </div>
    );
  },
  methods: {
    fn_click () {
      console.log("fn_click", this);
    }
  }
};
</script>

<style lang="less" scoped>
</style>